﻿@using Citi.GocAttributes.WebUI.Models
@model Webdiyer.WebControls.Mvc.PagedList<Citi.GocAttributes.Domain.Goc>
@{
    ViewBag.Title = "New GOCs";
}
@section Menu
{
    @Html.Partial("~/Views/Menu/Gocs.cshtml")
}
<h2>
    GOC Search</h2>
<div id="filter">
    @using (Ajax.BeginForm("NewGocs", "Goc", new AjaxOptions { UpdateTargetId = "gocsList" }, new { id = "filterForm" }))
    {
        <text>Month: </text> @Html.DropDownList("month", (IEnumerable<SelectListItem>)ViewBag.Months )
        <text>Year: </text> @Html.DropDownList("year", (IEnumerable<SelectListItem>)ViewBag.Years)
        <br/>
        <input type="submit" value="   Filter   " class="btn" style="float: right; margin-right: 100px;" />
    }
</div>
<br />
<br />
<div id="gocsList">
    @Html.Partial("~/Views/Goc/List.cshtml", new GocOptionModel { Exception = false, Gocs = Model })
</div>
